Systems and methods of parallel to serial conversion

ABSTRACT

A system and method for using one or more clock signals is disclosed. The system includes a clock translator that has a first input to receive a first reference clock signal and a second input to receive a second reference clock signal. The clock translator also includes an output to provide a bit rate clock signal having a clock frequency in a first ratio with respect to the frequency of the first reference clock but having a resolution based on at least a portion of the second reference clock signal. The second reference clock has a faster rate than the first reference clock.

CROSS REFERENCE TO RELATED APPLICATIONS

The present application claims priority from and is a divisional of U.S. patent application Ser. No. 11/356,227 filed on Feb. 16, 2006 and entitled “CLOCK TRANSLATOR AND PARALLEL TO SERIAL CONVERTER,” the contents of which are expressly incorporated herein by reference in their entirety.

FIELD OF THE DISCLOSURE

The present disclosure relates to translation of clock signals and to parallel to serial conversion systems.

BACKGROUND

Conversion of digital signals from a parallel format to a serial format is useful in a variety of applications, including applications requiring communication for electronic devices. A particular electronic device may convert a digital signal from a parallel format to a serial format and transmit the signal in the serial format to a peripheral device. Conversion of a signal from a parallel to a serial format prior to transmission may use a variety of clock signals. For example, different clock signals may be used to sample a digital signal and for conversion of the signal from the parallel to the serial format. It is sometimes useful to synchronize the various clock signals during the conversion process. At high speeds, the frequency of the source clocks used for synchronization may have poor resolution. Accordingly, there is a need for an improved system and method for translating clock signals for parallel to serial conversion of a digital signal.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of an exemplary embodiment of a parallel to serial conversion system;

FIG. 2 is a block diagram of a particular embodiment of the clock translator of the system of FIG. 1;

FIG. 3 is a timing diagram that illustrates the clock signals of the system of FIG. 1;

FIG. 4 is a flow chart of a particular embodiment of a method of providing a bit stream; and

FIG. 5 is a flow chart of a particular embodiment of a method of converting a parallel input to a serial output.

DETAILED DESCRIPTION

A system and method for using one or more clock signals is disclosed. The system includes a clock translator that has a first input to receive a first reference clock signal and a second input to receive a second reference clock signal. The clock translator also includes an output to provide a bit rate clock signal having a clock frequency in a first ratio with respect to the frequency of the first reference clock but having a resolution based on at least a portion of the second reference clock signal. The second reference clock has a faster rate than the first reference clock.

In a particular embodiment, the system includes a sample rate converter to convert the sample rate of a digital input signal based on a sample rate control input. The system also includes a parallel to serial converter responsive to the sample rate converter to convert a parallel input to a serial output based on a bit clock rate. The system further includes a clock translator. The clock translator includes a first input to receive the sample rate control input, a second input to receive a first reference clock signal and a third input to receive a second reference clock signal. The clock translator also includes an output to provide the bit rate clock signal. The bit rate clock signal has a clock frequency in a first ratio with respect to the frequency of the first reference clock and has a resolution based on at least a portion of the second reference clock signal.

The method includes generating a bit stream signal having a plurality of bit transitions, where the plurality of bit transitions have a frequency in a first ratio with respect to the frequency of a first clock signal and where a first set of the plurality of bit transitions have timing that is derived based on edges of a second clock signal. The generated bit stream signal is provided as an output signal.

Referring to FIG. 1, a parallel to serial conversion system 100 is illustrated. The parallel to serial conversion system 100 includes a sample rate converter 102, a parallel to serial converter 104, and a clock translator 108. The parallel to serial converter 104 is responsive to the sample rate converter 102 to convert a parallel input to a serial output. The parallel to serial converter 104 has an input that receives a bit clock signal 120. The parallel to serial conversion system 100 also includes a digital phase lock loop 106 that is responsive to a reference clock signal 112. The digital phase lock loop 106 and the clock translator 108 receive a first reference clock signal 114. The clock translator 108 also receives a second reference clock signal 116. The clock translator 108 receives a sample rate control signal 118 that is provided by the digital phase lock loop 106. The sample rate control signal 118 is also provided to the sample rate converter 102 which has an input for data 110. In a particular embodiment, the sample rate control signal includes an integer portion and a fractional portion.

During operation, the data input 110 is provided to the sample rate converter 102. The sample rate converter 102 is controlled by the sample rate control signal 118 and provides parallel data to the parallel to serial converter 104 to be converted to a serial data output stream. The parallel to serial converter 104 conducts the parallel to serial conversion in response to the bit clock signal 120 that is generated by the clock translator 108. The clock translator 108 includes a first input to receive the sample rate control input 118, a second input to receive the first reference clock signal 114 and a third input to receive the second reference clock signal 116. The clock translator 108 has an output that provides the bit rate clock signal 120. The bit rate clock signal has a clock frequency in a first ratio with respect to the frequency of the first reference clock signal 114. The first ratio is controlled by the sample rate control signal 118. In addition, the bit rate clock signal 120 uses at least a portion of the second reference clock signal 116 to provide for improved resolution. Accordingly, the resolution of the bit rate clock signal 120 is controlled by the second reference clock signal 116, while the frequency of the bit rate clock signal 120 is based on the first reference clock signal 114 and is controlled by the sample rate control signal 118. This allows for better resolution of the bit rate clock signal with the appropriate frequency control.

In a particular embodiment, the bit rate clock signal 120 includes a plurality of transition pulses where a first set of the plurality of transition pulses have a frequency in a first ratio with the frequency of the first reference clock 114 and a set of the plurality of pulses are synchronized with at least some of the second reference clock signal edges 116. Also, the second reference clock signal 116 has a rate that is substantially faster than the rate of the first reference clock signal 114. In a particular illustrative embodiment, the second reference clock signal 116 may be the fastest system clock available in a particular hardware implementation. By using both the first reference clock signal 114 and the second reference clock signal 116 to create the bit rate clock signal 120, improved bit rate clock resolution may be obtained. This can allow for faster conversion or more accurate conversion of the data input 110 to the serial data output stream.

Referring to FIG. 2, a particular illustrative embodiment of the clock translator 108 is shown. The clock translator 108 includes an input module 202, a low pass filter module 204, a delta sigma modulator 206, and a toggle register 230. The input module 202 is responsive to the first clock 114 and the low pass filter 204 is responsive to the second clock 116. The low pass filter 204 is responsive to data from the input module 202. The input module 202 and the low pass filter 204 form a first translation stage to determine a ratio between the rate of the second reference clock 116 and the rate of the first reference clock 114. The clock translator 108 also includes a second translation stage that is responsive to the first translation stage. The second translation stage includes the modulator and provides the toggle signal to the toggle register based on the sample rate control input 118 and in response to the output from the low pass filter 204. The toggle register is responsive to the output of the delta sigma modulator 206 to produce the bit clock signal 120.

In a particular embodiment, the low pass filter 204 may be implemented as having a first integrator 210 followed by a delay element 212. The low pass filter 204 may also include a feedback path including digital logic 208. The feedback path is formed by a combination node 214 that also feeds a feed forward stage 216 for the low pass filter 204 and provides feedback via the integrator 210. The feed forward stage 216 provides the low pass filter 204 output that is fed to an input of the delta sigma modulator 206. In a particular illustrative embodiment, the delta sigma modulator 206 may include an input summer 220, comparative unit 222 and feedback loop including a multiplier 224 that multiplies the delta sigma modulator 206 output with the sample rate control 118. The input summing node 220 also includes additional feedback through delay element 218 to implement the delta sigma modulator function within the delta sigma modulator unit 206. In a particular embodiment, the comparator 222 will output a one when the input summer is negative and will output a zero at other times. The toggle register 230 provides the output bit rate clock signal 120.

During operation, the output of the low pass filter 204 is based on a ratio of the number of pulses in the second reference clock signal 116 to the number of pulses in the first reference clock signal 114. The delta-sigma modulator 206 receives the output of the low pass filter 204 and compares the result to the sample rate control 118. Accordingly, when an integration of the reciprocal of the number of pulses of the second reference clock signal 116 per pulse of the first reference clock signal 114 exceeds the sample rate control 118, the delta sigma modulator produces a toggle signal. This toggle signal is provided to the toggle register 230. In response, the toggle register 230 produces a pulse of the bit rate clock 120.

Referring to FIG. 3, a general diagram that illustrates timing and edge transitions of different digital clock signals used with respect to the parallel to serial converter system 100 is shown. The first clock reference signal 114 has a first transition edge 302 and a second transition edge 304. The second reference clock signal 116 has a first identified transition edge 306, a second identified transition edge 308, a third identified transition edge 310, a fourth identified transition edge 312, and a fifth identified transition edge 314. The sample rate control signal 118 includes a at least one transition edge as shown. The generated bit clock signal 120 includes a first illustrative transition edge 316, a second illustrated transition edge 318, and a third illustrated transition edge 320, and a fourth illustrated transition edge 326.

As shown, the first transition edge 302 and the second transition edge 304 of the first reference clock signal are substantially aligned with the first identified transition edge 306 and the second identified transition edge 308 of the second reference clock signal 116. In addition, the first transition edge 316 of the bit clock signal is aligned with the third identified transition edge 310 of the second reference clock signal 116. Further, the first transition edge 316 of the bit clock signal is not aligned with an edge of the first reference clock signal 114. However, as illustrated, the first reference clock signal includes a certain number of pulses for each cycle of the bit clock signal 120. In the illustrated example, the first reference clock signal 114 includes two pulses for each cycle of the bit clock signal 120. Accordingly, the frequency of the bit clock signal 120 is in a ratio with the frequency of the first reference clock signal 114. In a particular embodiment, the ratio is controlled by the sample rate control signal 118.

Further, as illustrated, the edges of the bit clock 120 are synchronized with the edges of the second reference clock signal 116. For example, the edges 316, 318 and 320 of the bit clock signal 120 are synchronized with the edges 310, 312, and 314 of the second reference clock signal 116.

Thus, the generated bit stream signal 120 has a plurality of bit transitions where a frequency of the plurality of bit transitions are in a ratio to the frequency of the first reference clock signal 114 and where a set of the plurality of bit transitions have timing that is substantially aligned with or derived from edges of the second clock signal 116. The second reference clock signal 116 having a faster bit rate than the first reference clock signal 114 is used to adjust or enhance the resolution of the resulting generating bit clock signal 120.

Referring to FIG. 4, a method of providing a bit stream signal is illustrated. The method includes using a digital phase lock loop to produce a sample rate control input based on a first clock signal and a reference clock signal, at 400. In a particular embodiment, the reference clock signal represents the sample rate of a data input stream. The method further includes calculating a ratio between a rate of a second clock signal and the rate of the first clock signal as shown at 402. The method further includes generating a bit stream signal that is based on the relationship between the determined ratio and the sample rate control input where a portion of bit transitions of the bit stream are in a first ration with respect to the frequency of the first clock signal. In a portion of the bit stream, transitions of the bit stream have timing that is derived based on edges of the second clock signal, as shown at 404. The method further includes providing the generated bit stream signal as an output to a parallel/serial converter, at 406. In a particular embodiment, the generated bit stream signal is based on the determined multi-clock ratio and on the sample rate control input. In addition, the bit stream signal may be provided as an input to the parallel/serial converter and a resulting output serial data stream may be provided therefrom.

Referring to FIG. 5, a method of converting a parallel data input to a serial data output is illustrated. The method includes receiving a parallel data input, at 502, and converting a sample rate of the parallel data input signal based on a sample rate control signal, at 504. The method further includes generating a bit stream signal having a plurality of bit transitions where the frequency of the plurality of transitions are in a ratio with the frequency of a first clock signal, and where a set of the plurality of bit transitions have timing that is derived based on edges of a second clock signal, as shown at 506. Thus, the generated bit stream signal has a frequency in a ratio with a first clock signal rate which may be at a slower rate, but the generated bit stream signal has intermediate edge transitions to provide for enhanced resolution using an asynchronous second clock signal having a faster clock rate. The method further includes converting a sample rate of the parallel data input based on a sample rate control signal, at 508. The method further includes providing the serial output data in response to an output of a sample rate converter and in response to the generated bit stream signal provided. The resulting bit stream signal may be used in the parallel to serial converter and beneficially provides a high resolution input signal for the conversion.

The above disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover all such modifications, enhancements, and other embodiments which fall within the true spirit and scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description. 

1. A parallel to serial conversion system, comprising: a sample rate converter to convert a sample rate of a digital input signal based on a sample rate control input; a clock translator, including: a first input to receive the sample rate control input; a second input to receive a first reference clock signal; a third input to receive a second reference clock signal; an output to provide a bit rate clock signal having a clock frequency in a first ratio with respect to a frequency of the first reference clock signal and having a resolution based on at least a portion of the second reference clock signal; and a parallel to serial converter to convert a parallel input to a serial output based on the bit rate clock signal.
 2. The parallel to serial conversion system of claim 1, further comprising: a digital phase lock loop to provide the sample rate control input based on the first reference clock signal.
 3. The parallel to serial conversion system of claim 1, wherein the sample rate control input includes an integer portion and a fractional portion.
 4. The parallel to serial conversion system of claim 1, wherein the clock translator further includes an input module responsive to the first reference clock, an integrator responsive to the input module, and a delta-sigma modulator responsive to the integrator.
 5. The parallel to serial conversion system of claim 4, wherein the delta-sigma modulator is responsive to the sample rate control input.
 6. The parallel to serial conversion system of claim 1, wherein the first ratio is controlled by the sample rate control input.
 7. The parallel to serial conversion system of claim 1, wherein a rate of the first reference clock signal is asynchronous with respect to the second reference clock signal.
 8. The parallel to serial conversion system of claim 1, wherein the bit rate clock signal includes a plurality of pulses, and wherein the plurality of pulses and wherein a first set of the plurality of pulses are synchronized with edge transitions of the second reference clock signal.
 9. The parallel to serial conversion system of claim 1, wherein the second reference clock signal is at a faster rate than the first reference clock signal.
 10. The parallel to serial conversion system of claim 1, wherein the clock translator further comprises: a first translation stage to calculate a second ratio between a rate of the second reference clock signal and a rate of the first reference clock signal; and a second translation stage responsive to the first translation stage to provide the bit rate clock signal based on the sample rate control input.
 11. The parallel to serial conversion system of claim 10, wherein the second translation stage comprises an accumulator responsive to the first translation stage and a comparator responsive to the accumulator and to a reference value, wherein the accumulator is further responsive to the sample rate control input when the comparator indicates a favorable condition of the accumulator with respect to the reference value.
 12. The parallel to serial conversion system of claim 11, wherein the reference value is zero.
 13. A method of providing a bit stream signal, the method comprising: generating a bit stream signal having a plurality of bit transitions, wherein the plurality of bit transitions have a frequency in a first ratio with respect to the frequency of a first clock signal wherein a first set of the plurality of bit transitions have timing that is derived based on edges of a second clock signal; and providing the generated bit stream signal.
 14. The method of claim 13, wherein the second clock signal has a faster rate than and is asynchronous with respect to the first clock signal.
 15. The method of claim 13, further comprising calculating a ratio between a rate of the second clock signal and a rate of the first clock signal; and generating the bit stream signal based on the ratio and based on a sample rate control input.
 16. The method of claim 13, further comprising providing the generated bit stream signal to a parallel to serial converter.
 17. A method of converting a parallel data input to a serial data output, the method comprising: receiving a parallel data input; generating a bit stream signal having a plurality of bit transitions, wherein the plurality of bit transitions has a frequency in a first ratio with respect to the frequency of a first clock signal, and wherein a first set of the plurality of bit transitions has a timing that is derived based on selected edges of a second clock signal; and converting the parallel data input to a serial data output based on the generated bit stream signal.
 18. The method of claim 17, further comprising converting a sample rate of the parallel data input based on a sample rate control signal.
 19. The method of claim 17, wherein the generated bit stream signal provides a high resolution input signal, and wherein the generated bit stream signal has intermediate edge transitions to provide enhanced resolution using an asynchronous second clock signal having a faster clock rate.
 20. The method of claim 17, wherein generating the bit stream signal includes calculating a second ratio between a rate of the second clock signal and a rate of the first clock signal and generating the bit stream signal based on a relationship between the second ratio and a sample rate control input. 